<?php
$Set_Title		= $config_nc->Contact_Us;
$Id				= $func->html_get('u2');

$Row_Result   	= $contact_class->GetById($Id);	
if(is_array($Row_Result)){
	$name 			= $Row_Result[0]['name'];
	$email 			= $Row_Result[0]['email'];
	$phone 			= $Row_Result[0]['phone'];
	$date 			= $Row_Result[0]['date'];
	$content 		= $Row_Result[0]['content'];		
}else{
	$notFound = 0;
}
?> 
<div class="dataTables db">
	<div class="dataTables_bar db">
    	<h5 class="title dib"><?php echo $Set_Title;?></h5>        
    </div><!--end dataTables_bar-->
    <div class="themuser db">
    	<?php 
		if(isset($notFound) && $notFound==0){
			echo '<div class="notFound">'.$config_nc->NotFound.'</div>';	
		}else{
		?>             
    	<form class="form-centent" action="" method="post">
        	<ul class="nd db">            	                
                <li>
                    <label class="span2 fl"><?php echo $contact_nc->Name;?></label>
                    <span><?php echo $name; ?></span>
                </li>
                <li>
                    <label class="span2 fl"><?php echo $contact_nc->Email;?></label>
                    <span><?php echo $email; ?></span>
                </li>   
                <li>
                    <label class="span2 fl"><?php echo $contact_nc->Phone;?></label>
                    <span><?php echo $phone; ?></span>
                </li>  
                <li>
                    <label class="span2 fl"><?php echo $contact_nc->Date;?></label>
                    <span><?php echo $func->Date_format($date);?></span>
                </li>      
                <li>
                    <label class="span2 fl"><?php echo $contact_nc->Content;?></label>
                    <textarea id="content" name="content" cols="50" rows="7">
                    	<?php echo $content;?>
                    </textarea>
                </li>           
            </ul>
            <div class="form-actions db">                  	
                <a class="dib" href="<?php echo $WEB_DOMAIN.'/'.$WEB_ADMIN.'/index.php?u1=list-contact'; ?>"><?php echo $config_nc->Cancel;?></a>
            </div><!--end form-actions-->
        </form>
        <?php }?>
        
    </div>
</div><!--end dataTables-->